package com.yootk;
import java.util.concurrent.*;

public class YootkDemo12 {
    public static void main(String[] args) throws Exception {
        ExecutorService service = Executors.newCachedThreadPool();
        for (int x = 0; x < 5; x++) {
            service.submit(() -> {
                System.out.println("【" + Thread.currentThread().getName() +
                        "】沐言科技：www.yootk.com");
            });
        }
        service.shutdown();
    }
}